Skip to main content

binfile

Type

keyword

Summary

Used as a URL type with the get and put commands to designate a local file.

Syntax

binfile

Description

Use the binfile keyword to work with binary files.

The binfile scheme indicates a binary file which is located on the user's system. The file is specified by either a full path starting with "/", or a relative path starting from the defaultFolder.

A URL container can be used anywhere another container type is used.

When you put data into a binfile URL or get data from it, LiveCode does not translate end-of-line markers (ASCII 10 and ASCII 13) between the current platform's standard and LiveCode's internal standard of a linefeed. This ensures that binary data, which may contain such characters, is not accidentally corrupted.

If you are working with text data (such as text in fields), use the file URL scheme instead.

Examples

answer myConversionFunction(URL "binfile:input")
put imageData into URL "binfile:/Main/project/test.gif"

property: fileType, defaultFolder

command: revCopyFile, delete URL, put, get

glossary: platform, binary file, ASCII, local file, absolute file path, URL scheme, keyword, relative file path, end-of-line marker, command

keyword: URL, file

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?